<!-- 文章列表页模板 -->
<!-- inc:inc.head -->
<div align="center">
<div id="body">
<div class="table">

<div id="left_1">
	<div><!-- inc:inc.login --></div>
	<div class="space_between"><div class="space_between"></div></div>
	<div class="global_sub">Google AD</div>
	<div class="border_no_top">
		<div align="center" style="padding-top:3px;padding-bottom:3px;">
<script type="text/javascript"><!--
google_ad_client = "pub-1124871151256320";
/* 160x600, 创建于 08-2-21 */
google_ad_slot = "0117568841";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
		</div>
	</div>
</div>

<div id="middle_1"><div class="space_between"></div></div>

<div id="right_1">
	<div class="global_sub">Buy</div>
	<div class="border_no_top">

		<div style="padding:10px;">
		<table width="90%">
		<form method="post" action="buy.php?act=buyok&id=" name="qg_buy" onsubmit="return check_buymsg();">
		<tr>
			<td width="23%">Product: <span style="color:red;">*</span></td>
			<td><input type="text" name="subject" id="buy_subject" style="width:300px" value="{:$rs[subject]}"> [Enter the Product's Name]</td>
		</tr>
		<tr>
			<td>Count: <span style="color:red;">*</span></td>
			<td><input type="text" name="buycount" id="buycount" style="width:45px;" value="1"> [How many You want?]</td>
		</tr>
		<tr>
			<td>Name: <span style="color:red;">*</span></td>
			<td><input type="text" name="username" id="buy_username" value="{:$usermsg[user]}"> [Enter your name]</td>
		</tr>
		<tr>
			<td>Contact: <span style="color:red;">*</span></td>
			<td><input type="text" name="contact" id="contact" value="{:$usermsg[phone]}"> [Phone Or Mobile]</td>
		</tr>
		<tr>
			<td>Address: <span style="color:red;">*</span></td>
			<td><input type="text" name="address" id="address" value="{:$usermsg[address]}" style="width:300px"></td>
		</tr>
		<tr>
			<td>ZipCode: <span style="color:white;">*</span></td>
			<td><input type="text" name="zipcode" id="zipcode" value="{:$usermsg[zipcode]}" style="width:75px;"> [Enter the zipcode]</td>
		</tr>
		<tr>
			<td>Email: <span style="color:white;">*</span></td>
			<td><input type="text" name="email" id="email" value="{:$usermsg[email]}"> [Enter your email]</td>
		</tr>
		<tr>
			<td>Note: <span style="color:white;">*</span></td>
			<td><input type="text" name="note" id="note" style="width:300px"></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="image" src="images/orderok.gif" style="border:0;" /></td>
		</tr>
		</form>
		</table>
	</div>
</div>
<div style="clear:both;"></div>

</div>
</div>
</div>

<script type="text/javascript">
function check_buymsg()
{
	var username = $("buy_username").value;
	var buycount = $("buycount").value;
	var subject = $("buy_subject").value;
	var contact = $("contact").value;
	var address = $("address").value;
	var email = $("email").value;
	if(username == "")
	{
		alert("Name is empty...");
		$("buy_username").focus();
		return false;
	}
	if(parseInt(buycount) <1)
	{
		alert("Count is empty ...");
		$("buycount").focus();
		return false;
	}
	if(subject == "")
	{
		alert("Product is empty...");
		$("buy_subject").focus();
		return false;
	}
	if(address == "")
	{
		alert("Address is empty...");
		$("address").focus();
		return false;
	}
	if(contact == "")
	{
		alert("contact is empty...");
		$("contact").focus();
		return false;
	}
	if(email)
	{
		if(!checkemail(email))
		{
			alert("Email is not right");
			$("email").value = "";
			$("email").focus();
			return false;
		}
	}
	$("order_submit").disabled=true;
}
</script>
<!-- inc:inc.foot -->